<!DOCTYPE html>
<?php if (!is_fang90_server_name()) : ?>
<!-- 
┏┓╋┏┓╋┏┓╋╋╋╋╋╋┏━┓
┃┃╋┃┃╋┃┃╋╋╋╋╋╋┃┏┛
┃┃╋┃┣━┛┣┳━━┳━┳┛┗┳━━┳━┓┏━━┓
┃┃╋┃┃┏┓┣┫┏┓┃┏╋┓┏┫┏┓┃┏┓┫┏┓┃
┃┗━┛┃┗┛┃┃┏┓┃┃┃┃┃┃┏┓┃┃┃┃┗┛┃
┗━━━┻━━┻┻┛┗┻┛┗┻┛┗┛┗┻┛┗┻━┓┃
╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏━┛┃
╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗━━┛

http://udfang.com
Work with us? We're a fun bunch!  http://udfang.com/about
-->
<?php endif; ?>
<html lang="zh-CN">
<head>
    <?php 
        $websiteName = is_fang90_server_name() ? "房90" : "U点房";
    ?>
    <title><?php e($city->area_name); ?>新房，上海新房楼盘价格 / <?php e($websiteName); ?></title>
    <meta content='IE=Edge' http-equiv='X-UA-Compatible'>
    <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
    <link rel="shortcut icon" type="image/x-icon" href="/<?php if(is_fang90_server_name()) : ?>f90.ico<?php else : ?>favicon.ico<?php endif; ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimal-ui" />
    <meta content='<?php e($city->area_name); ?>楼盘,<?php e($city->area_name); ?>新开楼盘,<?php e($city->area_name); ?>房价走势,<?php e($city->area_name); ?>新楼盘精选' name='keywords'>
    <meta content='<?php e($websiteName); ?>为您精选推荐最新楼盘信息，精选开盘楼盘信息，精选在售楼盘信息，了解和关注更多精选新楼盘信息，就上<?php e($websiteName); ?>。' name='description'>
    <link rel="stylesheet" href="/assets/css/building/reset.css" />
    <link rel="stylesheet" href="/assets/css/building/index_3.0.css" />
    <link rel="stylesheet" href="/assets/css/building/common.css" />
    <!-- <link rel="stylesheet" href="/assets/css/building/landingpage.css" /> -->
    <link rel="stylesheet" href="/assets/css/building/list.css" />
</head>
<body>
    <?php $this->load->view('../home/nav') ?>
    <section class="list-wrapper">
        <div class="summary">
            <div class="search-condition">
                <div class="area clearfix">
                    <div class="title">区域：</div>
                    <div class="select">
                    <?php foreach ($districts as $key => $val) : ?>
                        <?php if($val->disabled) : ?>
                            <em><?php e($val->name); ?></em>
                        <?php else : ?>
                            <a href="<?php e($val->url); ?>" <?php if ($val->url_active) : ?>class="con-select"<?php endif; ?> rel="nofollow"> <?php e($val->name); ?> </a>
                        <?php endif; ?>
                    <?php endforeach; ?>
                    </div>
                </div>
                <div class="kind clearfix">
                    <div class="title">楼盘类型：</div>
                    <div class="select">
                    <?php foreach ($building_type as $key => $val) : ?>
                        <a href="<?php e($val->url); ?>" <?php if ($val->url_active) : ?>class="con-select"<?php endif; ?> rel="nofollow"> <?php e($val->name); ?> </a>
                    <?php endforeach; ?>
                    </div>
                </div>
                <!-- <div class="special">
                    <div class="title">特色：</div>
                    <div class="select">
                        <a href="#"> 低首付 </a>
                        <a href="#"> 史上最差评 </a>
                        <a href="#"> 相当划算 </a>
                        <a href="#" class="con-select"> 买房返现 </a>
                    </div>
                </div> -->
                <div class="price clearfix" <?php if (!$query_arr) : ?>style="border-bottom:none;"<?php endif; ?>>
                    <div class="title">价格范围：</div>
                    <div class="select">
                        <?php if ($city_price) : ?>
                        <?php foreach ($city_price as $key => $val) : ?>
                            <a href="<?php e($val->url); ?>" <?php if ($val->url_active) : ?>class="con-select"<?php endif; ?> rel="nofollow"> <?php e($val->name); ?> </a>
                        <?php endforeach; ?>
                        <?php endif; ?>
                    </div>
                </div>
                <?php if ($query_arr) : ?>
                <div class="choose clearfix" style="display: block;">
                    <?php foreach ($query_arr as $key => $val) : ?>
                        <span><?php e($val->name); ?><a href="<?php e($val->url); ?>"><img src="/assets/images/building/delete.png" alt=""></a></span>
                    <?php endforeach; ?>
                </div>
                <?php endif; ?>
            </div>
            <div class="buildings clearfix">
                <h3>全部楼盘</h3>
                <?php foreach ($order_arr as $key => $val) : ?>
                <a href="<?php e($val->url); ?>" class="order <?php e($val->a_class); ?>"><?php e($val->name); ?></a>
                <?php endforeach; ?>
                <!-- <a href="#" class="order-down">开盘时间</a> -->
                <?php if ($buildings) : ?>
                <?php foreach ($buildings as $key => $val) : ?>
                <div class="building-grid-block clearfix" onmouseover="focusPoint(<?php e($val->lng); ?>,<?php e($val->lat); ?>,'<?php e($val->name); ?>');" onmouseout="outPoint(<?php e($val->lng); ?>,<?php e($val->lat); ?>,'<?php e($val->name); ?>')">
                    <?php if(in_array($val->building_id, [1648,1845,1842,1848,1850,1852,1870,1858,1856,1878,1876])) :?>
                        <a href="<?php if(isset($qd) && !empty($qd)){echo "/building/{$city->code}/{$val->building_id}?qd={$qd}";}else{echo "/building/{$city->code}/{$val->building_id}";}  ?>" target="_blank">
                    <?php else :?>
                        <a href="<?php if(isset($qd) && !empty($qd)){echo "/building/{$city->code}/{$val->building_id}/campaign?qd={$qd}";}else{echo "/building/{$city->code}/{$val->building_id}/campaign";}  ?>" target="_blank">
                    <?php endif;?>
                        <img src="<?php e($val->cover->absolute_url); ?>" alt="" width="100%" class="lazyload" height="auto">
                        <div class="list-desc" >
                            <h5><?php e($val->name); ?></h5>
                            <p class="price"><?php if($val->price_desc != ''): ?>
                                <?php echo $val->price_desc; ?>
                            <?php else: ?>
                                <p class="price"><?php if ($val->ave_price != 0): ?>
                                <span> ¥<?php e($val->ave_price); ?></span>元/平米<?php else: ?>价格待定<?php endif; ?></p>
                            <?php endif; ?></p>
                            <p class="type"><?php e($val->main_hx); ?></p>
                            <p class="address"><?php if($val->district): ?>[<?php e($val->district->area_name); ?>]<?php endif; ?> <?php e($val->address); ?></p>
                            <p class="tip"><span><?php e(building_status_site_name()[$val->status]); ?></span><?php foreach ($val->tags as $tag) : ?><span><?php e($tag->tag_name); ?></span><?php endforeach; ?></p>
                        </div>
                    </a>
                </div>
                <?php endforeach; ?>
                <?php else : ?>
                <p style="padding: 20px 0 20px 3%; font-size: 16px;">没有找到楼盘</p>
                <?php endif; ?>
                
                <input class="to-condition" type="button" value="找到你想要的楼盘" onclick="location.href='/building<?php echo "/{$city_code}?".$current_query; ?>&condition=1'"/>
                <?php echo $this->pagination->create_links(); ?>
                <div class="clearfix"></div>
                <div class="around_wrap">
					<p class="around"><span><?php e($city->area_name); ?>热门楼盘：</span><?php foreach($hot_buildings as $val) : ?><a href="<?php echo "/building/{$city->code}/{$val->id}/campaign"; ?>"><?php e($val->name); ?></a> <!-- <?php if($val != end($hot_buildings)): ?>·<?php endif; ?> --> <?php endforeach; ?></p>
                	<!-- <p class="around"><span>周边热门的城市楼盘：</span><a href="">金地艺华年</a>·<a href="">中铁青秀城</a>·<a href="">龙湖北城天街</a></p> -->
                </div>
                
            </div>
        </div>
        <div class="allmap" style="height: 100%; max-height: 1000px;">
            <div id="map" style="width: 100%; height: 100%; max-height: 1000px;"></div>
        </div>
        <div class="clear"></div>
    </section>

    <script src="/assets/js/building/jquery-1.11.1.min.js"></script>
    <script src="/assets/js/building/list.js"></script>
    <script src="/assets/js/building/jquery.scrollstop.js"></script>
    <script src="/assets/js/building/common.js"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.4"></script>
    <script src="/assets/js/building/jquery.lazyload.js"></script>
    <script src="/assets/js/building/lazysizes.js"></script>
    <script type="text/javascript">
    	$(function(){
    		$('img.lazyload').show().lazyload();
    	})
    </script>
    <script type="text/javascript">  
        var pointLng = <?php echo $buildings[0]->lng ? $buildings[0]->lng : 121.53994318327; ?>;
        var pointLat = <?php echo $buildings[0]->lat ? $buildings[0]->lat : 31.261026766; ?>;
        var markerArr = [<?php foreach ($buildings as $key => $val) {
            echo "{ title: '".$val->name."', point: '".$val->lng.",".$val->lat."', address: '".$val->address."', tel: '".$val->telephone."' }, ";
        } ?>];
        // var markerArr = [  
        //     { title: "名称：广州火车站", point: "113.264531,23.157003", address: "广东省广州市广州火车站", tel: "12306" },  
        //     { title: "名称：广州塔（赤岗塔）", point: "113.330934,23.113401", address: "广东省广州市广州塔（赤岗塔） ", tel: "18500000000" },  
        //     { title: "名称：广州动物园", point: "113.312213,23.147267", address: "广东省广州市广州动物园", tel: "18500000000" },  
        //     { title: "名称：天河公园", point: "113.372867,23.134274", address: "广东省广州市天河公园", tel: "18500000000" }  
        // ];  
  
        	var map; //Map实例
            var maker_arr = new Array();  
       
            map = new BMap.Map("map");  
            //第1步：设置地图中心点，广州市  
            var point = new BMap.Point(pointLng, pointLat);  
            //第2步：初始化地图,设置中心点坐标和地图级别。  
            map.centerAndZoom(point, 13);  
            //第3步：启用滚轮放大缩小  
            map.enableScrollWheelZoom(true);  
            //第4步：向地图中添加缩放控件  
            var ctrlNav = new window.BMap.NavigationControl({  
                anchor: BMAP_ANCHOR_TOP_LEFT,  
                type: BMAP_NAVIGATION_CONTROL_LARGE  
            });  
            map.addControl(ctrlNav);  
            //第5步：向地图中添加缩略图控件  
            var ctrlOve = new window.BMap.OverviewMapControl({  
                anchor: BMAP_ANCHOR_BOTTOM_RIGHT,  
                isOpen: 1  
            });  
            map.addControl(ctrlOve);  
  
            //第6步：向地图中添加比例尺控件  
            var ctrlSca = new window.BMap.ScaleControl({  
                anchor: BMAP_ANCHOR_BOTTOM_LEFT  
            });  
            map.addControl(ctrlSca);  
  
             //第7步：绘制点    
            for (var i = 0; i < markerArr.length; i++) {  
                var p0 = markerArr[i].point.split(",")[0];  
                var p1 = markerArr[i].point.split(",")[1];  
                var maker = addMarker(new window.BMap.Point(p0, p1), markerArr[i].title, i, background="#fff",color="#fc6469",i);  
                addInfoWindow(maker, markerArr[i], i);  
                maker_arr[i] =  maker;
            }  
               
  
            // 添加标注  
	        function addMarker(point, title, index, background,color,zindex) { 
	        	//添加标注
	            /*var myIcon = new BMap.Icon("http://api.map.baidu.com/img/markers.png",
                    new BMap.Size(23, 25), {  
                        offset: new BMap.Size(10, 25),  
                        imageOffset: new BMap.Size(0, 0 - index * 25)  
                    }); */ 
                // var marker = new BMap.Marker(point, { icon: myIcon });  
                var marker = new BMap.Label(title, {position: point});
                marker.setStyle({color:color,border:"#e5004f 1px solid",fontSize:"14px", padding:"3px 6px",background:background});
                marker.setZIndex({zIndex: zindex});
                map.addOverlay(marker);
                return marker;  
            }  
  
            // 添加信息窗口  
        	function addInfoWindow(marker, poi) {  
	            //pop弹窗标题  
	            var title = '<div style="font-weight:bold;color:red;font-size:14px">' + poi.title + '</div>';  
	            //pop弹窗信息  
	            var html = [];  
	            html.push('<table cellspacing="0" style="table-layout:fixed;width:100%;font:12px arial,simsun,sans-serif"><tbody>');  
	            html.push('<tr>');  
	            html.push('<td style="vertical-align:top;line-height:16px;width:38px;white-space:nowrap;word-break:keep-all">地址:</td>');  
	            html.push('<td style="vertical-align:top;line-height:16px">' + poi.address + ' </td>');  
	            html.push('</tr>');  
	            html.push('<td style="vertical-align:top;line-height:16px;width:38px;white-space:nowrap;word-break:keep-all">号码:</td>'); 
	            html.push('<td style="vertical-align:top;line-height:16px">' + poi.tel + ' </td>');  
	            html.push('</tr>');  
	            html.push('</tbody></table>');  
	            var infoWindow = new BMap.InfoWindow(html.join(""), { title: title, width: 200 });  
  
                var openInfoWinFun = function () {  
                    marker.openInfoWindow(infoWindow);  
                };  
                marker.addEventListener("click", openInfoWinFun);  
                return openInfoWinFun;  
            }  
        //鼠标移入更改样式
        function focusPoint(lng,lat,name){
            console.log(maker_arr[0]);
            for (var i = 0; i < maker_arr.length; i++) {
                if(maker_arr[i]['content'] == name){
                    var marker = maker_arr[i];
                    marker.setStyle({color:"#fff",border:"#e5004f 1px solid",fontSize:"14px", padding:"3px 6px",background:"#fc6469",zIndex:999});
                }
            }
            var point = new BMap.Point(lng, lat);
            map.panTo(point);
        }
        //鼠标移出更改样式
        function outPoint(lng,lat,name){
            for (var i = 0; i < maker_arr.length; i++) {
                if(maker_arr[i]['content'] == name){
                    var marker = maker_arr[i];
                    marker.setStyle({color:"#fc6469",border:"#e5004f 1px solid",fontSize:"14px", padding:"3px 6px",background:"#fff",zIndex:-999});
                }
            }
        }
        <?php if($show_qyyx58) : ?>
        // 统计代码
        eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('A g$=["\\l\\9\\2\\4\\5\\3\\1\\q\\9\\4\\2\\h\\"\\a\\1\\1\\3\\r\\6\\6\\e\\d\\o\\7\\i\\k\\k\\m\\n\\p\\7\\2\\d\\e\\6\\a\\i\\6\\s\\z\\7\\3\\a\\3\\y\\5\\h\\b\\b\\c\\8\\b\\c\\c\\8\\B\\8\\"\\j\\l\\/\\9\\2\\4\\5\\3\\1\\j"];x["\\u\\d\\2\\t\\e\\f\\w\\1"]["\\v\\4\\5\\1\\f"](g$[0]);',38,38,'|x74|x63|x70|x72|x69|x2f|x2e|x31|x73|x68|x32|x33|x6f|x6d|x65|_|x3d|x71|x3e|x79|x3c|x78|x35|x62|x38|x20|x3a|x67|x75|x64|x77|x6e|window|x3f|x6a|var|x36'.split('|'),0,{}))
        <?php endif; ?>
    </script>  
    <?php $this->load->view('../home/analytics') ?>
</body>
</html>